package com.bs.product.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bs.product.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bs.product.entity.dto.ProductDto;
import org.apache.ibatis.annotations.Param;
import sun.invoke.util.Wrapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lukang
 * @since 2022-11-05
 */
public interface ProductMapper extends BaseMapper<Product> {

    public Product getByID(Long id);

    public List<Product> lbgeAll();


    public List<Product> lbSearch(@Param("dto")ProductDto dto);

    public Page<Product> lbSearch(IPage<Product> page, @Param("dto") ProductDto dto);

    public Page<Product> qwpage(IPage<Product>page,@Param("ew") LambdaQueryWrapper<Product> queryWrapper);


}
